package com.atguigu.gmall.wms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.wms.entity.WareSkuEntity;
import com.atguigu.gmall.wms.vo.SkuLockVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public interface GmallWmsApi {
    @ApiOperation("批量释放库存")
    @PutMapping("wms/waresku/batchReleaseStock/{orderToken}")
    public ResponseVo batchReleaseStock(@PathVariable("orderToken")String orderToken);
    @ApiOperation("验库存锁库存")
    @PostMapping("wms/waresku/checkAndLock")
    public ResponseVo<List<SkuLockVO>> checkAndLock(@RequestBody List<SkuLockVO> skuLockVOS);
    @ApiOperation("根据skuid查询库存列表")
    @GetMapping("wms/waresku/sku/{skuId}")
    public ResponseVo<List<WareSkuEntity>> listBySkuId(
                            @PathVariable("skuId")Long skuId);
}
